var mongoose = require('mongoose');

Schema = mongoose.Schema;

// Create a schema for our data
/*
var MyModelSchema = new Schema({
    school:String,
    name: String,
    age:String,
    date: Date
});*/

var MyModelSchema = new Schema({
    app:String,
    mod: Array
});
// Use the schema to register a model with MongoDb
mongoose.model('MyModel', MyModelSchema);
//mongoose.model('AppModel', ApplicationSchema);

//Create a Schema for Users
var UsersSchema = new Schema ({
    name: String,
    gender: String,
    birthdate: Date,
    address: String,
    email: String,
    contactno: String,
    type: String
});

mongoose.model('UserModel',UsersSchema);
console.log("Created Sales Manager and Man Users model");
